package javase_01_jvm.se_jvm_ref_pass_value;

/**
 * Package Name:javase_01_jvm.se_jvm_ref_pass_value
 * Description: 值传入or引用传入
 * Date:2016/9/6 13:57
 * Copyright (c) 2016, zhongmu@suneee.com All Rights Reserved.
 */
public class ChangeGender {

    public static void change(String gender){
        gender ="女";
        System.out.println("手术期间：gender="+gender);
    }
    public static void main(String[] args) {

        String gender = "男";
        System.out.println("变性前：gender="+gender);
        change(gender);
        System.out.println("变性后：gender="+gender);

    }
}
